<?php
$di = \Phalcon\Di::getDefault();

$di->getShared('eventsManager')->attach('entity:links', function ($event, \Core\Mvc\Entity\EntityInterface $entity,$links) {
    if ($entity->getEntity() == 'configList' && $entity->getContentModel() == 'form') {
        $links['addBlock'] = array(
            'href' => array(
                'for' => 'adminFormData',
                'id' => $entity->getId(),
                'page' => 1
            ),
            'data-target' => 'right_handle',
            'icon' => 'info',
            'name' => '查看数据'
        );
        $entity->setLinks($links);
    }
});
